import React, { Component } from 'react'

const detailData=[
    {id:'01',content:'数据1'},
    {id:'02',content:'数据2'},
    {id:'03',content:'数据3'},

]
export default class Detail extends Component {
    render() {
        
        const {id,title}=this.props.match.params
        const findRes =detailData.find((detailObj)=>{
            return detailObj.id ===id
        })
        return (
           <ul>
               <li>Id:{id}</li>
               <li>Title:{title}</li>
               <li>content:{findRes.content}</li>

           </ul>
        )
    }
}
